package com.hx.vending.dao;

import com.hx.vending.bean.Refund;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2019/1/25.
 */
@Repository
public interface RefundMapper {

    int insertSelective(Refund refund);

    List<Refund> selectByExampleSelective(Refund refund);

    Map<String,Object> selectRefundMoneyByTime(@Param("startTime") String startTime,@Param("endTime") String endTime,
                                               @Param("userId") Integer userId);
    List<Map<String,Object>> selectRefundByTime(@Param("userId")Integer userId,@Param("startTime") String startTime,
                                                @Param("endTime") String endTime,@Param("integers") Integer[] integers);
}
